//
//  JRNetWorkTool.swift
//  myWeibo
//
//  Created by 樊健荣 on 16/7/19.
//  Copyright © 2016年 樊健荣. All rights reserved.
//

import UIKit
import AFNetworking

class JRNetWorkTool: AFHTTPSessionManager {
    
    static let sharedNetWorkTool: JRNetWorkTool = JRNetWorkTool(baseURL: NSURL(string: "https://api.weibo.com/2/"))
    
    //配置序列化器
    override init(baseURL url: NSURL?, sessionConfiguration configuration: NSURLSessionConfiguration?) {
        super.init(baseURL: url, sessionConfiguration: configuration)
        
        self.responseSerializer.acceptableContentTypes?.insert("text/plain")
        
        
    }

    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
